<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Match_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-match_id" data-rule="required" data-primary-key="m_id" data-field="name" data-source="match/match/index" {if $matchId}disabled{/if} class="form-control selectpage" name="row[match_id]" type="text" value="{$matchId}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-search-field="u.mobile,ua.real_name" data-pagination="true" data-primary-key="id" data-field="ushowfiled" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Purview')}:</label>
        <div class="col-xs-12 col-sm-8" id="checkbox_power">
            {if $purview}
            {foreach $purview as $pk=>$pv}
            <input type="checkbox" name="row[purview][]" value="{$pv.value}">{$pv.title}</input>
            {/foreach}
            {/if}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
